package com.ssk.sh.web.controller;

import com.ssk.sh.model.TestMultiId;
import com.ssk.sh.service.ITestMultiIdService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author ssk
 * @since 2025-06-19
 */
@RestController
@RequestMapping("/testMultiId")
@Tag(name = "TestMultiId", description = "")
@AllArgsConstructor
public class TestMultiIdController {

    private final ITestMultiIdService testMultiIdService;

    /**
     * 测试
     */
    @RequestMapping("/test")
    public Mono<TestMultiId> test() {
        TestMultiId testMultiId = new TestMultiId();
        testMultiId.setId(1);
        testMultiId.setId2(1);
        testMultiId.setId3(1);
        testMultiIdService.save(testMultiId);
        return Mono.just(testMultiId);
    }

}
